/*tabwidget*/
$(function(){var s=null,Tabberx={settings:{tabHeaders:null,tabSections:null,currentIndex:null,speed:800,collection:null,i:null,j:null,select:null,},init:function(){s=this.settings;s.tabSections=$("div.widget1");$(s.tabSections[0]).slideDown(s.speed);$(s.tabSections[1]).slideUp(s.speed);$(s.tabSections[2]).slideUp(s.speed);$(s.tabSections[3]).slideUp(s.speed);this.getClickedTab()},getClickedTab:function(){s=this.settings;s.tabHeaders=$("#tab ul.tab-widget-menu a");s.select=$("ul.tab-widget-menu li:first");s.collection=$("#pointabs div.widget1");s.select.addClass("selected");$(s.tabHeaders).click(function(){$("ul.tab-widget-menu li").removeClass("selected");$(this).parent("li").addClass("selected");s.currentIndex=$(this).parent().index();for(s.i=0,s.j=s.collection.length;s.i<s.j;s.i+=1){if(s.i!==s.currentIndex){$(s.tabSections[s.i]).slideUp(s.speed)}else{$(s.tabSections[s.i]).slideDown(s.speed)}}return false})},};Tabberx.init()});
$(function(){
/*navigation*/
    $('#nav li ul, #rssnew .rssother').removeClass('hidden');
    $('#nav li').hoverTimeout(100, function() {
	$('ul', this).filter(':not(:animated)').slideDown(600, 'easeOutBounce');
    }, 500, function() {
        $('ul', this).slideUp(800, 'easeInExpo');
    });
$('ul.isinavnya').clone().appendTo('#mobinavnya');
$('.navixmobi').toggle(function() {
    $(this).addClass('active');
    $('#mobinavnya ul.isinavnya').slideDown();
}, function() {
    $(this).removeClass('active');
    $('#mobinavnya ul.isinavnya').slideUp();
});
$('.dgnsub > a').toggle(function() {
 $($(this).parent()).children('ul').slideDown();
}, function() {
  $($(this).parent()).children('ul').slideUp();
});
$('.clickx').toggle(function() {
$(this).parent('.otherclik').addClass('active');
 $($(this).parent(), this).children('.rssother').slideDown(600, 'easeOutBounce');
}, function() {
$(this).parent('.otherclik').removeClass('active');
 $($(this).parent(), this).children('.rssother').slideUp(800, 'easeInExpo');
});
});

jQuery("#related_posts").relatedPostsWidget({
        related_title: "Snippet Terakhir",
        thumb_size: "s50-c",
        max_posts: 4,
	summary:100,
        thumb_default: "http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s1600/grey.gif"
    });

$(function() {
$('.leavecomments a').removeAttr('href').click(function() {
$('html, body').animate({scrollTop: $("#comment-editor").offset().top}, 1500);return false;
});});
$(function() {
$('.post a[href$=".jpg"], .post a[href$=".png"], .post a[href$=".gif"], .post a[href$=".bmp"]').attr('class','colorbox');
});
$(window).bind("load", function() {
$(".colorbox").colorbox({rel:'group1', opacity: 0.5, maxWidth: "95%", 
maxHeight: "95%", fixed:true, onLoad: function() {$('#cboxWrapper').css({
visibility: 'visible',opacity: 0,top: '-200px'}).animate({
opacity: 1,	top: 0}, {duration: 2000, easing: 'easeOutElastic' });}			  
});
setTimeout(function() {
$('#sidebar-wrapper').css({visibility: 'visible',position: 'relative',opacity: 0,top: '-500px'})
.animate({opacity: 1, top: 0}, {duration: 4000, easing: 'easeOutElastic'});	
}, 1000);
});

$(function(){
   var newerLink = $('a.blog-pager-newer-link').attr('href');
 $('a.blog-pager-newer-link').load(newerLink + ' .post-title:first', function () {
        var newerLinkTitle = $('a.blog-pager-newer-link').text();
  $('a.blog-pager-newer-link').html('<h6>Next</h6><h5>' + newerLinkTitle + '</h5>');
    });
    var olderLink = $('a.blog-pager-older-link').attr('href');
 $('a.blog-pager-older-link').load(olderLink + ' .post-title:first', function () {
        var olderLinkTitle = $('a.blog-pager-older-link').text();
  $('a.blog-pager-older-link').html('<h6>Previous</h6><h5>' + olderLinkTitle + '</h5>');
    });
	});   
$(window).scroll(function(){if($(this).scrollTop()>100){$("#top").removeAttr("href");$("#top").stop().animate({bottom:"-3",right:"0"},{duration:600,queue:false})}else{$("#top").stop().animate({bottom:"-50",right:"0"},{duration:600,queue:false})}});$(function(){$("#top").click(function(){$("html, body").animate({scrollTop:0},"slow");return false})});

$(document).ready(function(){$("a.tooltipshow").mouseover(function(b){var a=$(this).attr("title");$(this).attr("title","");$(this).append('<div id="tooltipshow"><div class="tipBody">'+a+"</div></div>");$("#tooltipshow").fadeIn("500");$("#tooltipshow").fadeTo("10",0.9)}).mousemove(function(d){var a=(d.pageX-$(".post").offset().left);var g=(d.pageY-$(".post").offset().top);var f=$(".post").innerWidth();var b=a+270;if(b>f){var c=f-250}else{var c=a+20}$("#tooltipshow").css("top",g+10);$("#tooltipshow").css("left",c)}).mouseout(function(){$(this).attr("title",$(".tipBody").html());$(this).children("div#tooltipshow").remove()})});
function autoLoad(){var b=document.title;var a=location.protocol+"//"+location.host+location.pathname;$("div.post-body").before('<div class="sukasocial"><div class="sukatdk" ><iframe style="height: 21px;display: block;width: 210px;overflow: hidden;border: 0;" class="reaction-button" src="http://www.blogger.com/blog-post-reactions.g?options=%5BSuka%2C%20Tidak%20Suka%5D&amp;textColor=%23333#'+a+'"></iframe></div><div class="social-header">Loading...</div></div>');$("div.social-header").each(function(){var d=$(this);var c=encodeURIComponent(b);var e=encodeURIComponent(a);d.html('<iframe class ="fbxx" src="http://www.facebook.com/plugins/like.php?href='+e+'&layout=button_count&show_faces=false&width=90&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe><iframe class ="googlex" width="42" height="21" frameborder="0" scrolling="no" vspace="0" tabindex="-1" src="https://plusone.google.com/u/0/_/+1/fastbutton?url='+e+'&amp;size=medium&amp;count=none&amp;db=1&amp;hl=id" marginwidth="0" marginheight="0" hspace="0" allowtransparency="true"></iframe><iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/tweet_button.html?count=none&url='+e+"&text="+c+'" style="width:70px; height:21px;"></iframe>')})};
autoLoad();
document.write('<script type="text/javascript" src="http://kang-fathur.blogspot.com/feeds/posts/summary?redirect=false&max-results=8&alt=json-in-script&callback=rposts"></'+'script>');
document.write('<script type="text/javascript" src="http://kang-fathur.blogspot.com/feeds/posts/summary?redirect=false&max-results=25&alt=json-in-script&callback=getPostUrlsForComments"></'+'script>');
document.write('<script type="text/javascript" src="http://kang-fathur.blogspot.com/feeds/comments/default?redirect=false&max-results=50&alt=json-in-script&callback=showRecentComments"></'+'script>');
$('#rcomments').append('<iframe class="notirc" src="https://posank.googlecode.com/svn/trunk/html/notification.html"></iframe>');